layui.use(['table', 'layer', 'form', 'admin', 'ax'], function () {
    var $ = layui.jquery;
    var layer = layui.layer;
    var form = layui.form;
    var admin = layui.admin;
    var table = layui.table;
    var $ax = layui.ax;

    // 让当前iframe弹层高度适应
    admin.iframeAuto();

    // 监听提交
    form.on('submit(submit)', function () {
        var str = "";
        $("input[type=checkbox]").each(function(){
            if($(this).prop("checked")){
                var key = $(this).data("key");
                str += "," + key;
            }
        })
        if(str === ''){
            Feng.error("请至少选择导出一列");
            return false;
        }
        window.parent.exportUserExcel(str);
        admin.closeThisDialog();
        return false;
    });



});
